import { View } from "@tarojs/components";
import "./index.scss";
import ListItem from "../../ListItem";
import ListRow from "components/ListRow";

interface Props {
  selected: boolean; // 判断当前用户是不是选中界面
}

function Favorite(props: Props) {
  return (
    <View className={`favorite ${props?.selected ? "favorite-show" : ""}`}>
      <ListRow title="maodal demo" path="/pages/watchapp/pages/modal/index" />

      <ListRow
        title="Add to cart"
        path="/pages/watchapp/pages/addtocart/index"
      />
      <ListRow
        title="Cart Check Out"
        path="/pages/watchapp/pages/cartCheckOut/index"
      />
      <ListItem />
    </View>
  );
}

export default Favorite;
